import request from '@/utils/request'

export const getCode = (data: any) => {
    return request({
        url: '/login/code',
        method: 'post',
        data
    })
}

export const login = (data: any) => {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

export const policyProtocolList = (data: any) => {
    return request({
        url: '/policy_protocol/list',
        method: 'get',
        params: {
            data
        }
    })
}